package com.treeman.api.json.user;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

import com.treeman.friend.Invitation;

public class NotificationJson {

	private List<InvitationJson> invitations;

	public NotificationJson() {
	}

	public NotificationJson(Set<Invitation> invitations) {
		this.setInvitations(new ArrayList<InvitationJson>(invitations.size()));
		for (Invitation invitation : invitations) {
			InvitationJson invJson = new InvitationJson(invitation);
			this.getInvitations().add(invJson);
		}
	}

	public List<InvitationJson> getInvitations() {
		return invitations;
	}

	public void setInvitations(List<InvitationJson> invitations) {
		this.invitations = invitations;
	}
}
